function getPkg() {
  try {
    return require(process.cwd() + '/package.json');
  } catch (e) {
    return {};
  }
}



const isCCWEB = () => {
  const pkg = getPkg();
  return pkg.name === 'saas-cc-web';
}

function isCCWEBSplitProject() {
  const pkg = getPkg();
  return !isCCWEB() && pkg.name.includes('saas-cc-web');
}

module.exports = {
  getPkg,
  isCCWEB,
  isCCWEBSplitProject
}